package jtk.project4.fleet.ibatis.dao;

import java.sql.SQLException;
import java.util.List;

import nl.coderight.jazz.dialog.MessageDialog;
import nl.coderight.jazz.dialog.MessageType;
import jtk.project4.fleet.domain.LaborAsc;
import jtk.project4.fleet.domain.Vendor;

public class LaborascDao extends IbatisDao{
	
	public List selectLaborAsc() throws SQLException {
	List selectLaborAsc = null;
	selectLaborAsc =getSqlMap().queryForList("SELECT_ALL_LABORASC", null);
	return selectLaborAsc;
}
	
	public int deleteLaborAsc(LaborAsc laborAsc) throws SQLException{
		return (int) getSqlMap().delete("DELETE_LABORASC", laborAsc);
	}
	
	public int updateLaborAsc(LaborAsc laborAsc) throws SQLException{
		return (int) getSqlMap().update("UPDATE_LABORASC", laborAsc);
	}
	
	public LaborAsc insertLaborAsc(LaborAsc laborAsc) throws SQLException{
		return (LaborAsc) getSqlMap().insert("INSERT_LABORASC", laborAsc);
	}
	
}
